# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do
  @moduledoc """
  Specification that applies to entries that are part `LOOKER` system (user_specified_type)

  ## Attributes

  *   `parentInstanceDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent Looker Instance. Empty if it does not exist.
  *   `parentInstanceId` (*type:* `String.t`, *default:* `nil`) - ID of the parent Looker Instance. Empty if it does not exist. Example value: `someinstance.looker.com`
  *   `parentModelDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent Model. Empty if it does not exist.
  *   `parentModelId` (*type:* `String.t`, *default:* `nil`) - ID of the parent Model. Empty if it does not exist.
  *   `parentViewDisplayName` (*type:* `String.t`, *default:* `nil`) - Name of the parent View. Empty if it does not exist.
  *   `parentViewId` (*type:* `String.t`, *default:* `nil`) - ID of the parent View. Empty if it does not exist.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :parentInstanceDisplayName => String.t() | nil,
          :parentInstanceId => String.t() | nil,
          :parentModelDisplayName => String.t() | nil,
          :parentModelId => String.t() | nil,
          :parentViewDisplayName => String.t() | nil,
          :parentViewId => String.t() | nil
        }

  field(:parentInstanceDisplayName)
  field(:parentInstanceId)
  field(:parentModelDisplayName)
  field(:parentModelId)
  field(:parentViewDisplayName)
  field(:parentViewId)
end

defimpl Poison.Decoder,
  for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do
  def decode(value, options) do
    GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.DataCatalog.V1beta1.Model.GoogleCloudDatacatalogV1LookerSystemSpec do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
